home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1155 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.6 KB

  1. Path: news.umbc.edu!not-for-mail
  2. From: fuy1@umbc.edu (Francis A Uy)
  3. Newsgroups: rec.arts.comics.misc,comp.lang.c
  4. Subject: META: need help programming Squid vote counter
  5. Followup-To: poster
  6. Date: 11 Jan 1996 14:57:20 -0500
  7. Organization: University of Maryland, Baltimore County Campus
  8. Distribution: na
  9. Message-ID: <4d3q30$qgh@umbc8.umbc.edu>
  10. NNTP-Posting-Host: f-umbc8.umbc.edu
  11. NNTP-Posting-User: fuy1
  12.  
  13. It's been over a year since I've had to do any real programming,
  14.  and my brain has rusted over.  So rather than risk not finishing
  15.  in time to do the Squiddies (Jan 15), I'm asking for help now.
  16.  
  17. I would appreciate any and all suggestions &/or code in C or C++.
  18.  Unix will handle i/o, so the usual getchar or << will work fine.
  19.  I'll type "voteprog <squid.mail.file >squid.tabs" or some such.
  20.  
  21. The problem:
  22.  
  23. I expect to receive email that looks very much like the following:
  24.  (all misspellings, blanks, & inaccuracies are intentional -- I
  25.  expect a LOT of messed-up votes)
  26.  
  27. --
  28.  
  29. Newsgroups: rec.arts.comics.info,rec.arts.foo.bar,rec.arts.etc.misc
  30. From: Aldous Huxley <h1984@paranoia.io.com>
  31. Sent-By: thorazine.io.com (128.55.69.42)
  32. Subject: Re: VOTE: 1995 RAC* Squiddy Awards
  33. ASCII-Type: 7 bit
  34. Date: Wed Jan 17 15:03:25 EST 1996
  35. Lines: 96
  36.  
  37. In article <foo.bar%gl.umbc.edu960115>, you wrote:
  38. >*----- Do Not Erase Anything After This Line -----*
  39. >
  40. >1995 RAC* COMIC AWARDS BALLOT <RCAB95>
  41. >
  42. >#A1 Example Category : write your vote after each colon, like this
  43. >
  44. >#C1 Writer           : Neil Gaiman
  45. >#C2 Penciller        : Edward Gorey
  46. >#C3 Inker            : 
  47. >#C4 Painter          :Herman Head (or maybe I mean that guy on TV)
  48. >#C5 Letterer         : Comicraft
  49. >#C6 Colorist         :Marie Javins
  50. >#C7 Creative Team    :Dave Sim & Gerhard
  51. >#C8 Cover Artist     : I dunno
  52. >#C9 Editor           :  Diana Schutz, or is it Diana Shultz?
  53. >
  54. >#B1 Complete Story   : Bone: "The Great Cow Race": (issues 7-12)
  55. >#B2 Ongoing Series   :    THB
  56. >#B3 New Series       : Kurt Busiek's Astro City
  57. >#B4 Limited Series   : Kurt Busiek's Astro City (is this allowed?)
  58. >#B5 Most Improved    : Cerebus -- boy did I hate Melmoth
  59. >#B6 Single Issue     : Watchmen #11
  60. >#B7 Graphic Novel    : The Tragical Comedy or Comical Tragedy of Mister Punch
  61. >#B8 Collection/TPB   : Starchild
  62. >
  63. >#S1 Daily Strip      : Calvinball
  64. >#S2 Weekly Strip     : Refrigerator Johnny
  65. >#S3 Single Panel     : Dysfunctional Family Circus, or maybe Life in Hall
  66. >#S4 Pol. Cartoonist  : Tom Tomorrow
  67. >#S5 Collection       : Doonesbury 25th Anniversary
  68. >
  69. >#M1 Company/Imprint  : Paradox
  70. >#M2 Character        : Paragon
  71. >#M3 Character Team   : Dirty Pair
  72. >#M4 Character Cast   : Thorn/Granma/the Bones/Ted/the cows
  73. >#M5 Adaptation       : Maus CD-ROM
  74. >#M6 Letter Column    : Dread Letter Office
  75. >
  76. >#W1 Publication      : TCJ
  77. >#W2 Journalist       : E.G.O.
  78. >#W3 Online Forum     : rec.arts.comics.info
  79. >#W4 Web Site         : http://www.redweb.com/wraithspace
  80. >#W5 RAC'er (1)       : mac7@po.cwru.edu
  81. >#W6 RAC'er (2)       : 
  82. >#W7 RAC'er (3)       : RobRaza McClean
  83. >
  84. >#Z1 <FAUY95>
  85. >
  86. >-F
  87. >.
  88.  
  89. --
  90.  
  91. I want to convert these ballots into a single long line of
  92.  tab-delimited text, starting with the From: and Date: headers,
  93.  then the votes, including blanks.  My plan is to take these
  94.  text lines and paste them into an Excel spreadsheet, with
  95.  a column for each vote category.  Example conversion:
  96.  
  97. Aldous Huxley <h1984@paranoia.io.com>    Wed Jan 17 15:03:25 EST 1996    Neil Gaiman    Edward Gorey        Herman Head (or maybe I mean that guy on TV) Comicraft (etc)
  98.  
  99. Note the double tab after Edward Gorey for the skipped category.
  100.  And if possible, elminating tabs that are typed into votes would
  101.  be a plus, but not mandatory.  Thanks for any help.
  102.  
  103. -F
  104. .
  105.